<script setup>

import PageMain from "@/components/PageMain.vue";
import {ref} from "vue";
import {http} from "@/api";
const userList = ref([])
http.user.list({
  type: 1
}).then(res => {
  userList.value = res.data
})
</script>

<template>
  <PageMain title="律师咨询">
    <el-row :gutter="20">
      <el-col :span="6" v-for="item in userList" :key="item.id">
        <el-card style="max-width: 480px">
          <template #header>{{ item.nickname }}-{{ item.phone}}</template>
          <img
              :src="item.image"
              style="width: 100%"
          />
        </el-card>
      </el-col>
    </el-row>
  </PageMain>
</template>

<style scoped lang="scss">

</style>